Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@pnpm/find-workspace-dir
Advanced tools
@pnpm/find-workspace-dir is a utility package that helps you locate the root directory of a pnpm workspace. This can be particularly useful in monorepo setups where you need to perform operations relative to the workspace root.
Find Workspace Directory
This feature allows you to find the root directory of a pnpm workspace. The code sample demonstrates how to use the package to locate the workspace directory starting from the current working directory.
const findWorkspaceDir = require('@pnpm/find-workspace-dir');
(async () => {
const workspaceDir = await findWorkspaceDir(process.cwd());
console.log(workspaceDir);
})();
find-yarn-workspace-root is a package that helps you locate the root directory of a Yarn workspace. Similar to @pnpm/find-workspace-dir, it is useful in monorepo setups but is specific to Yarn workspaces.
workspace-tools is a package that provides various utilities for working with monorepos, including finding the root directory of a workspace. It supports multiple package managers like npm, Yarn, and pnpm, making it more versatile compared to @pnpm/find-workspace-dir.
FAQs
Finds the root of a pnpm workspace
The npm package @pnpm/find-workspace-dir receives a total of 518,332 weekly downloads. As such, @pnpm/find-workspace-dir popularity was classified as popular.
We found that @pnpm/find-workspace-dir demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.